// 海面气温
const Kelvin = 273.15
const tempLine = "255, 0, 0"
const tempColors = [
  [0 + Kelvin, [255, 235, 255]],
  [5 + Kelvin, [255, 214, 255]],
  [10 + Kelvin, [255, 194, 255]],
  [15 + Kelvin, [255, 173, 255]],
  [20 + Kelvin, [255, 153, 255]],
  [25 + Kelvin, [255, 133, 255]],
  [30 + Kelvin, [255, 112, 255]],
]

// 海温
const waterTempColors = [
  [0, [255, 230, 255]],
  [5, [255, 217, 255]],
  [10, [255, 199, 255]],
  [15, [255, 181, 255]],
  [20, [255, 163, 255]],
  [25, [255, 145, 255]],
  [30, [255, 128, 255]],
]

// 海流 m/s
const flowColors = [
  [0, [217, 255, 255]],
  [0.4, [191, 255, 255]],
  [0.8, [166, 255, 255]],
  [1.2, [140, 255, 255]],
]

// 海面气压
const mslColors = [
  [1000 * 100, [235, 255, 255]],
  [1005 * 100, [217, 255, 255]],
  [1010 * 100, [196, 255, 255]],
  [1015 * 100, [176, 255, 255]],
  [1020 * 100, [156, 255, 255]],
]
// 风浪 - 平均波高等值线 
// const lineColor = "255, 230, 255"
const shwwColors = [
  [0, [255, 212, 143]],
  [0.5, [255, 217, 161]],
  [1, [255, 222, 176]],
  [1.5, [255, 227, 194]],
  [2, [255, 232, 212]],
  [2.5, [255, 237, 230]],
  [3, [255, 230, 255]],
  [5, [255, 212, 255]],
  [7, [255, 191, 255]],
  [10, [255, 171, 255]],
]

// 盐度
const saltColors = [
  [0, [235, 255, 230]],
  [20, [217, 255, 209]],
  [25, [199, 255, 189]],
  [30, [181, 255, 168]],
  [35, [163, 255, 148]],
]

const lineColor = {
  temp: tempLine
}
export {
  flowColors,
  mslColors,
  tempColors,
  waterTempColors,
  shwwColors,
  saltColors,
  lineColor,
}